﻿using XChipTool.Enties;
using SqlSugar;
using System;
using System.Collections.Generic;
public class xc151_exManager : DbContext<xc151_ex>
{
 
    //当前类已经继承了 DbContext增、删、查、改的方法

    //这里面写的代码不会给覆盖,如果要重新生成请删除 xc128Manager.cs


   public string GetListToXc151Binparsing()
    {

        var model = xc151_exDb.GetSingle(c => c.Type == "xc151binparsing");
        return AESExample.DecryptString( model.Data);
        //return new List<xc151binparsing>();
    }

    public string GetListToXc151()
    {
        var model = xc151_exDb.GetSingle(c => c.Type == "xc151");
        return AESExample.DecryptString(model.Data);

    }


    public string GetListToBinDefault() {

        var model = xc151_exDb.GetSingle(c => c.Type == "bindefault");
        return AESExample.DecryptString(model.Data);
    }

}